//两整数之和
//测试链接 https://leetcode.cn/problems/sum-of-two-integers/description/
public class GetSum {
    public int getSum(int a, int b) {
        while( b != 0){
            int x = a ^ b; //无进位相加的结果
            int carray = (a & b) << 1; //进位的结果
            a = x;
            b = carray;
        }

        return a;
    }
}
